#!/bin/bash
#top -1 > kill helloword
top -n 1 >> result.txt
ps -ef|grep helloword|awk '{print $2}'|xargs kill -9
